#include"mylib.h"
int main()
{
   // add();
    MyFile*ptr=myfopen("log.txt","w");
    if(ptr==NULL)
    {
        perror("myfopen failure\n");
        return 0;
    }
    const char*message="hello world\n";
    myfwrite(message,1,strlen(message),ptr);
    myfclose(ptr);
    // const char *mes="hello world";
    // myfwrite(mes,1,strlen(mes),mystdout);

    return 0;
}